package com.sjb.sixteen_journey_backend.service;

import com.sjb.sixteen_journey_backend.common.R;
import com.sjb.sixteen_journey_backend.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sjb.sixteen_journey_backend.entity.vo.MyMapVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 共性表 服务类
 * </p>
 *
 * @author jcz
 * @since 2024-07-15
 */
public interface ICommonnessService extends IService<Commonness> {

    R<?> addCollection(Integer idStatus, Integer moduleId);

    R<?> addBeLiked(Integer idStatus, Integer moduleId);

    R getCollectionAndLikedByModuleId(Integer idStatus, Integer moduleId);

    R<List<MyMapVo>> showCollectionMap();

    R<List<MyMapVo>> showBeLikedMap();

    R<List<MyTime>> showCollectionMyTime();

    R<List<MyTime>> showBeLikedMyTime();

    R<List<AirTicket>> showCollectionAirTicker();

    R<List<AirTicket>> showBeLikedAirTicker();

    R<List<HotelTicket>> showCollectionHotelTicker();

    R<List<HotelTicket>> showBeLikedHotelTicker();

    R<List<InsuranceTicket>> showCollectionInsuranceTicker();

    R<List<InsuranceTicket>> showBeLikedInsuranceTicker();

    R<List<OthersTicket>> showCollectionOthersTicker();

    R<List<OthersTicket>> showBeLikedOthersTicker();

    R<List<ShareThing>> showCollectionShareThings();

    R<List<ShareThing>> showBeLikedShareThings();

//    R deleteMyTimeById(Integer status, Integer id);


    <T> R<List<List<T>>> showByKeywords(String keywords);

    <T> R<List<List<T>>> showByCityName(String keywords);

    R<List<ComeFriend>> showCollectionComeFriend();
}
